/**
 * Jaxson ajax
 *
 * Copyright Remedy Interactive, licensed under Apache version 2 license:
 *
 *  http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * This notice must remain in all java source files.
 */
package org.jaxson.struts.charts.bar;

import org.jaxson.struts.charts.AbstractChart;
import org.jfree.data.category.DefaultCategoryDataset;

/**
 * Class for creating a Bar Chart or Stacked Bar Chart.
 * 
 * @author Joe Maisel
 *
 */
public class BarChart extends AbstractChart
{
	public BarChart()
	{
		setFormat( new BarChartFormat() );
		setRenderer( new BarChartRenderer() );
	}
	
	public Class<DefaultCategoryDataset> datatype()
	{
		return DefaultCategoryDataset.class;
	}

	/**
	 * @see org.jaxson.struts.charts.AbstractChart#getRenderer()
	 */
	@Override
	public BarChartRenderer getRenderer()
	{
		return (BarChartRenderer)renderer;
	}
}
